#include <stdio.h>

int
main(int argc, char *argv[])
{
	printf("Hello, ");

	if (argc == 1) {
		printf("World");
	}
	else if (argc == 2) {
		printf("%s", argv[1]);
	}
	else {
		for (unsigned int x = 1; x < (argc-1); x += 1) {
			printf("%s, ", argv[x]);
		}
		printf("and %s", argv[argc-1]);
	}

	printf("!\n");

	return 0;
}
